﻿$ExecutePath = $PWD
Set-Location $PSScriptRoot

Set-Location ..

# 判断是否下载了Node.js扩展包
if (!(Test-Path "./node_modules")) {
    Write-Host "npm i"
    npm i
}

## TypeScript 编译
# =================================================================================================================== #
Write-Host "tsc --build --clean"
tsc --build --clean

Set-Location $ExecutePath
if ($PSScriptRoot -eq $ExecutePath) {
    # timeout.exe /T -1
}
